home *** CD-ROM | disk | FTP | other *** search
- _parent.hitpoints -= _parent.strikepower;
- if(_parent._name == "stickie")
- {
- barframe = _parent.hitpoints * 5;
- _root.energybar.gotoAndStop(barframe);
- }
- else
- {
- _root.score += _parent.strikepower * _parent.strikepower;
- _root.scoreline = _root.score;
- }
- if(0 >= _parent.hitpoints)
- {
- bob = "die " + _parent.strikePoint;
- if(_parent._name == "stickie")
- {
- _root.energybar.gotoAndStop(1);
- }
- gotoAndPlay(bob);
- }
- else if(_parent.strikePoint == "throw")
- {
- gotoAndPlay(30);
- }
- else if(_parent.strikePoint == "high")
- {
- if(_parent.struckPower >= 5)
- {
- gotoAndPlay(4);
- }
- else
- {
- gotoAndPlay(9);
- }
- }
- else
- {
- gotoAndPlay(_parent.StrikePoint);
- }
-